package com.wcar.sale.service.impl;

import com.wcar.common.vo.Result;
import com.wcar.sale.service.FrontUserService;
import com.wcar.sale.mapper.FrontUserMapper;
import com.wcar.sale.vo.saleTN;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

import static java.util.Arrays.stream;

/**
* @author DELL
* @description 针对表【tb_front_user(手机用户信息表)】的数据库操作Service实现
* @createDate 2024-05-23 21:50:54
*/
@Service
public class FrontUserServiceImpl implements FrontUserService{
	@Resource
	private FrontUserMapper frontUserMapper;
	@Override
	public Result<saleTN> getall() {
/*		QueryWrapper<FrontUser> wrapper = new QueryWrapper<>();
		List<FrontUser> frontUsers = frontUserMapper.selectList(wrapper);
		frontUsers.
				stream()
				.collect(Collectors.groupingBy(
						FrontUser::getRegister_time,
						Collectors.counting()
				));
		System.out.println(frontUsers);*/
		List<saleTN> selectall = frontUserMapper.selectall();
		System.out.println(selectall);
		return new Result(2000,"拿取手机端用户信息",selectall) ;
	}
}




